/*
	$Id: request-decode.h 453 2007-01-31 21:17:49Z ajw $

	Functions to implement decoding of received RPC calls.


	Copyright (C) 2006 Alex Waugh
	
	This program is free software; you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation; either version 2 of the License, or
	(at your option) any later version.
	
	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.
	
	You should have received a copy of the GNU General Public License
	along with this program; if not, write to the Free Software
	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

#ifndef REQUEST_DECODE_H
#define REQUEST_DECODE_H


#include "serverconn.h"
#include "pools.h"
#include "utils.h"

void request_decode(struct server_conn *conn);

typedef enum accept_stat (*decode_proc)(int proc, struct server_conn *conn);

enum bool portmapper_set(int prog, int vers, int prot, int port, decode_proc decode, struct pool *pool);

enum accept_stat portmapper_decodebody(int prog, int vers, int proc, int *hi, int *lo, struct server_conn *conn);

enum accept_stat nfs4_decode_proc(int proc, struct server_conn *conn);

#endif

